package com.mason.forum.model.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.mason.forum.model.Message;
import com.mason.forum.model.User;
import lombok.Data;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 马拉圈
 * Date: 2023-10-08
 * Time: 21:19
 */
@Data
public class MessageVO extends Message {

    @JsonInclude(JsonInclude.Include.ALWAYS)//保证一定会被序列化
    private User postUser; // 关联对象 - 发送者

    @Override
    public String toString() {
        return "ArticleVO{" +
                "postUser=" + postUser +
                '}' + "  super：" + super.toString();
    }
}
